/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2021并保留所有权利。
 * Copyright 2021, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.singleton.exaple.虚拟机加载SingletonHolder;

public class Singleton{

        public Singleton(){}

        public static Singleton getInstance(){

            return SingletonHolder.mSington;

}

        private static class SingletonHolder{

                private static final Singleton mSington=new Singleton();

    }


}
/*

作者：Bonny_2619
链接：https://www.jianshu.com/p/d2e88dec655c
来源：简书
著作权归作者所有。商业转载请联系作者获得授权，非商业转载请注明出处。*/
